<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh-CN">

	<head>
		<meta charset="UTF-8">
		<title>日志管理</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="../style/bootstrap.css" />
	</head>
	<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-md-12">
				<h1 class="page-header">
					日志管理 <small>日志列表</small>
				</h1>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<!-- 角色列表--bootstrap高级表格使用 -->
				<div class="panel panel-default">
					<div class="panel-heading">日志列表</div>
					<div class="panel-body">
						<!--table-responsive响应式表格，会自动添加滚动条-->
						<div class="table-responsive">
							<input class="btn btn-success" id="addRole" type="button"
								value="删除日志">
							<table class="table">
								<thead>

									<tr>
										<th><input type="checkbox" value=""></th>
										<th>编号</th>
										<th>日志类型</th>
										<th>日志内容</th>
										<th>产生时间</th>
										<th>操作</th>
									</tr>

								</thead>
								<tbody>
									<c:forEach items="${map.list}" var="logs">
										<tr class="odd gradeX">
											<th><input type="checkbox" value=""></th>
											<td>${logs.id}</td>
											<td>${logs.operateType}</td>
											<td>${logs.content}</td>
											<td>${logs.operateDate}</td>
											<td><a title="修改"
												href="/admin/LogsServlet?id=${logs.id}&flag=edit"
												class="t-edit glyphicon glyphicon-pencil"></a> <a title="删除"
												href="/admin/LogsServlet?id=${logs.id}&flag=del"
												class="t-del glyphicon glyphicon-trash"></a></td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</div>

						<!--分页显示-->
						<div class="row">
							<div class="col-md-6">
								<div class="pagination" style="margin: 0px;" role="alert"
									aria-live="polite" aria-relevant="all">显示 1 到
									${map.pageNum} 页 记录数${map.count}</div>
							</div>
							<div class="col-md-6" style="text-align: right;">
								<ul class="pagination" style="margin: 0px;">
									<li><a href="#" aria-label="Previous"> <span
											aria-hidden="true">&laquo;</span>
									</a></li>
									<c:forEach  begin="1" end="${map.pageNum}" step="1"
										var="page">
										<li><a href="/admin/LogsServlet?curPage=${page}">${page}</a></li>
									</c:forEach>
									<li><a href="#" aria-label="Next"> <span
											aria-hidden="true">&raquo;</span>
									</a></li>
								</ul>
							</div>
						</div>
						<!--分页显示-->
					</div>
				</div>
				<!--表格结束 -->
			</div>
		</div>
	</div>
</body>
</html>